package com.zim.aliot.listener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.zim.aliot.thread.AliMNSThreadDouble;
import com.zim.aliot.thread.AliMNSThreadFirst;
import com.zim.aliot.thread.AliMNSThreadThree;


@Component  
public class StartCommandLineRunner implements CommandLineRunner {
    @Autowired
    private AliMNSThreadFirst th1;
    
   
    @Autowired
    private AliMNSThreadDouble th2;
    
    @Autowired
    private AliMNSThreadThree th3;

    
    @Override
    public void run(String... args) {

       /* th1.start();
        th2.start();
        th3.start();*/
       // th1.start();
        //th2.start();
    }

    public void WorkerFunc(int i) {
       // log.info("线程{}",i);
        
        
    }
    
    public void stop() {
//        th1.interrupt();
       // th2.interrupt();
    }
}
